package org.ISCS.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.ISCS.entity.Dependency;
import org.ISCS.service.DependencyService;
import org.ISCS.mapper.DependencyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author mj
* @description 针对表【dependency】的数据库操作Service实现
* @createDate 2023-05-24 14:33:02
*/
@Service
public class DependencyServiceImpl extends ServiceImpl<DependencyMapper, Dependency>
    implements DependencyService{

    @Autowired
    DependencyMapper dependencyMapper;

    @Override
    public int insert(Dependency dependency) {
        int id =  dependencyMapper.insert(dependency);
        return id;
    }

    @Override
    public int updateDependencyById(Dependency dependency) {
        int id = dependencyMapper.updateById(dependency);
        return id;
    }
}




